package org.jeecg.modules.param.member.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.param.member.entity.BikeMemberUser;
import org.jeecg.modules.param.member.entity.BikeMemberUserCard;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description: IC卡管理
 * @Author: 月月鸟
 * @Date:   2021-05-25
 * @Version: V1.0
 */
public interface IBikeMemberUserCardService extends IService<BikeMemberUserCard> {

	public List<BikeMemberUserCard> selectByMainId(String mainId);

    Result<?> issuance(BikeMemberUserCard bikeMemberUserCard);

    Result<?> changeCard(BikeMemberUserCard bikeMemberUserCard);

    Result<?> initialize(String icCode);



    Result<?> updateByUserId(String userId, String methodType);

    Result<?> adminCard(String id, String icCode,String cardType,String cardNumber);

    Result<?> putCard(String id, String type);

    String condition(BikeMemberUserCard bikeMemberUserCard);

    String checkPinCard(BikeMemberUserCard bikeMemberUserCard);

    Result<?> getKeys();

    Result<?> verifyKeys(String keys);

    Result<?> initializeKey(String icCode);

    Result<?> creatIcCardCode();

    void setUserCard(BikeMemberUser bikeMemberUser);

    void returnTheCard(BikeMemberUserCard bikeMemberUserCard);

    boolean checkUserCardFree(BikeMemberUserCard bikeMemberUserCard);
}
